<template>
  <div :class="uiStyle + '-user'">
    个人首页
    {{ userInfo }}
  </div>
</template>

<script>
export default {
  name: 'userHome',
  data() {
    return {
      uiStyle: 'normal',
      userInfo: {}
    };
  },
  created() {
    this.uiStyle = sessionStorage.getItem('uiStyle') || 'normal',
    this.userInfo = sessionStorage.getItem('userInfo');
    window.resTime = new Date();
    console.log(window.resTime, '页面响应');
  },
};
</script>
<style lang="scss" scoped>
.normal-user {}
.elder-user {}
</style>
